<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<script type="text/javascript" src="http://localhost:8080/dojo-jetty7-primer/dojo/dojo.js.uncompressed.js"></script>
    <script type="text/javascript" src="http://localhost:8080/dojo-jetty7-primer/objavi.js"></script>
	<script type="text/javascript">
		var config = {
			contextPath: 'http://localhost:8080/dojo-jetty7-primer'
			};
			
		function sendMessage() {
			var myTextField = document.getElementById('poruka');
			send(myTextField.value);
			}
	</script>
</head>
<body>
	<div id="body"></div>
	Unesi tekst: <br/>
	<form>
		<input id="poruka" type="text"/> <br/>
		<input id="buttonSend" type="button" value="Posalji" onclick="sendMessage()"/>
	</form>
</body>
</html>